// 配置文件
(function(){
  const baseUrl = {
    devlopment:'/wms',
    test:'http://192.168.50.94:9909',
    prod:'http://203.81.89.30:9909'
  }
  const filepath = {
    devlopment:'http://192.168.50.57:8888',
    test:'http://192.168.50.57:8888',
    prod:'http://192.168.50.57:8888'
  }
  const stockUrl = {
    devlopment:'http://192.168.50.121:5004',
    test:'http://192.168.50.121:5006',
    prod:'http://erptest.zegobird.com:5006'
  }
  const userConfig = {
    devlopment:'http://192.168.50.63:8886',
    test:'http://192.168.50.75:8886',
    prod:'http://203.81.89.30:15684'
  }
  const printConfig = {
    devlopment:'http://192.168.50.62:6060',
    test:'http://192.168.50.62:6060',
    prod:'http://192.168.50.62:6060'
  }
  const printerConfig = {
    devlopment:'http://192.168.50.13:9000',
    test:'http://192.168.50.13:9000',
    prod:'http://192.168.50.13:9000'
  }
  // 当前环境
  const currentEnv = 'devlopment'
  // 配置对象
  const _config_ = {
    baseUrl:baseUrl[currentEnv],
    filepath:filepath[currentEnv],
    stockUrl:stockUrl[currentEnv],
    fileservice:`${baseUrl[currentEnv]}/fileservice`,
    userConfig:userConfig[currentEnv],
    printConfig:printConfig[currentEnv], // 下载打印机
    printerConfig:printerConfig[currentEnv] // 打印机服务
  }
  if (typeof module !== 'undefined' && typeof exports === 'object'){
    module.exports = _config_
  } else {
    this._config_ = _config_
  }
}).call(this || (typeof window !== 'undefined' ? window : global))